<template>
    <div id="log" class="content">
			<Back></Back>
			<Battery></Battery>
			<Title v-bind:hasHelp="false" v-bind:title="this.$route.params.title"></Title>
			<ietm-log-index v-show="!flag" @returnflag="getFlag"></ietm-log-index>
			<ietm-log-search v-show="flag" @returnflag="getFlag"></ietm-log-search>

	</div>
</template>

<script>
import Battery from "@/components/Battery";
import Title from "@/components/Title";
import Back from '@/components/Back';
import IetmLogSearch from '@/components/ietm/log/IetmLogSearch'
import IetmLogIndex from '@/components/ietm/log/IetmLogIndex'
export default {
    data(){
        return{
			flag:false,
			title:'',
        }

	},
    components:{
        Battery,
	    Title,
		Back,
		IetmLogSearch,
		IetmLogIndex
    },
    methods:{
		getFlag(msg){
			this.flag = msg
		}
    }/* ,
	watch:{
		$route(to,from)
		{
			if(from.name=="SuperSearchLog")
			{
				this.axios.get("/ietm/log",{params:{userName:this.$route.params.userName,
					operation:this.$route.params.operation,
					startDate:this.$route.params.startDate,
					endDate:this.$route.params.endDate
				}}).then(res=>{
				this.datas = res.data.rows;
			})
			}
		}
	} */
}
</script>



<style scoped>
@import url('../../assets/css/content.css');
@import url('../../assets/css/animation.css');
</style>

